package itdfq.ydd.Behavior_Patters.zhizelian;

/**
 * @Author GocChin
 * @Date 2021/5/3 19:25
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Client {
    public static void main(String[] args) {
        System.out.println("18031210136  杨丹丹");
        Parentes p1,p2;
        p1=new Father();
        p2=new Monther();
       p1.setParentes(p2);
       GoShopping g1 = new GoShopping("大儿子",50);
       p1.handRequest(g1);
       GoShopping g2 = new GoShopping("小闺女",200);
       p1.handRequest(g2);

    }
}
